﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModelForm.aspx.cs" Inherits="Whir_System_Module_CommonModel_ModelForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>

    <!--提示文字-->

    <script src="../../Js/common.js" type="text/javascript"></script>

    <script language="javascript">
            showhint('1','<b>表单管理</b>是管理后台“网站管理”录入数据页面的字段的显示和隐藏，以及搜索字段的设置。<br/>你可以设置某些字段在信息录入页面显示和隐藏，设置某些字段在信息列表页上显示，设置当做搜索条件的字段。');
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#DADADA">
            <tr>
                <td height="30" align="center" class="form_tdText">功能模块名称 </td>
                <td height="30" align="left" class="form_td">
                    <asp:DropDownList ID="ddlModelName" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlModelName_SelectedIndexChanged"
                        AppendDataBoundItems="true" Width="200px">
                        <asp:ListItem Text=" === 请选择功能模块 === " Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">表单名称 </td>
                <td height="30" align="left" class="form_td">
                    <asp:TextBox ID="txtFormName" runat="server" Width="200px" /></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">表单描述 </td>
                <td height="30" align="left" class="form_td">
                    <asp:TextBox ID="txtFormDesc" runat="server" TextMode="MultiLine" Height="60px" Width="200px"
                        CssClass="input_textarea" />
                </td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">字段列表</td>
                <td height="30" align="left" class="form_td">
                    <table style="border: 1px solid #000000; border-collapse: collapse;">
                        <tr>
                            <th style="width: 190px; border: 1px solid #000000; height: 20px;">
                                后台信息录入页面上的字段设置
                            </th>
                            <th style="width: 195px; border: 1px solid #000000; height: 20px;">
                                后台信息列表页面上的显示或隐藏
                            </th>
                            <th style="width: 190px; border: 1px solid #000000; height: 20px;">
                                后台信息列表页面上的搜索条件
                            </th>
                        </tr>
                        <tr>
                            <td align="left" style="border: 1px solid #000000;">
                                <asp:CheckBoxList ID="chkFieldIDs" runat="server">
                                </asp:CheckBoxList>
                            </td>
                            <td align="left" style="border: 1px solid #000000;">
                                <asp:CheckBoxList ID="chkIsHide" runat="server">
                                </asp:CheckBoxList>
                            </td>
                            <td align="left" style="border: 1px solid #000000;">
                                <asp:CheckBoxList ID="chkSearch" runat="server">
                                </asp:CheckBoxList>
                                <%--<asp:RadioButtonList ID="rbSearch" runat="server">
                                </asp:RadioButtonList>--%>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr style="display:none">
                <td height="30" align="center" class="form_tdText">时间段搜索 </td>
                <td height="30" align="left" class="form_td">
                    <asp:CheckBox ID="chkTimeSpanSearch" runat="server" Text="启用" />
                    <span class="form_desc">时间段搜索格式是：从“开始时间”到“结束时间”</span> </td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText"></td>
                <td height="30" align="left" class="form_td">
                    <asp:Button ID="btnSubmit" runat="server" Text="提交" CssClass="btn_default" OnClick="btnSubmit_Click"
                        OnClientClick="return checkForm();" />
                    &nbsp;&nbsp;<asp:Button ID="btnCancel" runat="server" Text="返回" CssClass="btn_default"
                        OnClick="btnCancel_Click" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
<!-- 文本框的样式初始化-->

<script language="javascript" src="../../Js/common.js"></script>

<script type="text/javascript">initAutoFormStyle();</script>

<!-- 验证-->

<script language="javascript" type="text/javascript" src="../../../Script/Validate.js"></script>

<script type="text/javascript">
function checkForm(){
        var vs = [ 
        "txtFormName|noNull|请输入当前表单的名称，名称可以为中文、英文等！"
        ]; 
        if(Validator(vs))
           return true;
        else
            return false;    
    }
</script>

